import { Loading } from "element-ui";

let loadingInstance;

export const addLoading = () => {
  loadingInstance = Loading.service({
    lock: true,
    text: "拼命加载中",
    spinner: "el-icon-loading",
    background: "rgba(255, 255, 255, 1)"
  });
};
export const delLoading = () => {
  setTimeout(() => {
    loadingInstance.close();
  }, 500);
};
